class SVNUtils
	attr_accessor :verbose
	
	def get_repository_revision(svn_root)
		command = "svn info " + svn_root
		repository_revision_regex = /^Revision: (\d*)$/
		output = %x[#{command}]
		return output.scan(repository_revision_regex)[0][0]
	end

	def svn_copy(from, to, message)
	
		command = "svn copy #{from} #{to} -m \"#{message}\""
		if @verbose then puts command end
		output = %x[#{command}]
		
		puts "===================[" + "SVN Copy result" + "]==================="
		puts output
		puts "======================================================="
		
	end
end